package com.contact.util.util.filters;

public class DataFilterDefault {
    public static final String FIELD_DISPLAY = "display";
    public static final String FIELD_FILTER = "filter";

    private transient final Object display;
    private transient final Object filter;

    public DataFilterDefault(Object display, Object filter) {
        this.display = display;
        this.filter = filter;
    }

    @SuppressWarnings("unchecked")
    public <D extends Object> D getDisplay() {
        return (D) display;
    }

    @SuppressWarnings("unchecked")
    public <F extends Object> F getFilter() {
        return (F) filter;
    }

}
